<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>科幻登录门户</title>
    <style>
        :root {
            --neon-blue: #0ff0fc;
            --neon-purple: #9600ff;
            --neon-pink: #ff00f6;
            --dark-bg: #0a0a14;
            --darker-bg: #050510;
            --text-glow: 0 0 10px rgba(150, 0, 255, 0.8);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Orbitron', 'Arial Narrow', sans-serif;
            background-color: var(--dark-bg);
            color: white;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            perspective: 1000px;
        }

        /* 科幻网格背景 */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(rgba(10, 10, 20, 0.8), rgba(10, 10, 20, 0.8)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0h100v100H0z" fill="none"/><path d="M0 0v100M20 0v100M40 0v100M60 0v100M80 0v100M100 0v100M0 0h100M0 20h100M0 40h100M0 60h100M0 80h100M0 100h100" stroke="rgba(0, 255, 252, 0.1)" stroke-width="0.5"/></svg>');
            z-index: -2;
        }

        /* 动态扫描线效果 */
        body::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                to bottom,
                transparent 95%,
                rgba(0, 255, 252, 0.05) 96%,
                transparent 97%
            );
            background-size: 100% 10px;
            animation: scanline 1s linear infinite;
            z-index: -1;
            pointer-events: none;
        }

        @keyframes scanline {
            0% { background-position: 0 0; }
            100% { background-position: 0 10px; }
        }

        .container {
            position: relative;
            width: 100%;
            max-width: 500px;
            padding: 2rem;
            transform-style: preserve-3d;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
            50% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
        }

        .portal {
            position: relative;
            background: rgba(5, 5, 16, 0.7);
            border-radius: 15px;
            padding: 3rem;
            box-shadow: 
                0 0 30px rgba(150, 0, 255, 0.3),
                inset 0 0 20px rgba(0, 255, 252, 0.1);
            border: 1px solid rgba(0, 255, 252, 0.2);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transform-style: preserve-3d;
            overflow: hidden;
            z-index: 1;
        }

        .portal::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(
                from 0deg,
                transparent,
                rgba(0, 255, 252, 0.1),
                transparent
            );
            animation: rotate 10s linear infinite;
            z-index: -1;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .portal::after {
            content: '';
            position: absolute;
            inset: 2px;
            border-radius: 13px;
            background: rgba(5, 5, 16, 0.7);
            z-index: -1;
        }

        h1 {
            text-align: center;
            margin-bottom: 2.5rem;
            font-weight: 700;
            font-size: 2.2rem;
            letter-spacing: 2px;
            color: var(--neon-blue);
            text-shadow: 
                0 0 10px var(--neon-blue),
                0 0 20px var(--neon-blue),
                0 0 40px var(--neon-purple);
            position: relative;
            animation: textGlow 2s ease-in-out infinite alternate;
        }

        @keyframes textGlow {
            0% { text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple); }
            100% { text-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue), 0 0 60px var(--neon-purple); }
        }

        h1::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(to right, transparent, var(--neon-blue), transparent);
            box-shadow: 0 0 10px var(--neon-blue);
            border-radius: 3px;
        }

        .input-group {
            position: relative;
            margin-bottom: 2rem;
        }

        .input-group input {
            width: 100%;
            padding: 15px 20px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(0, 255, 252, 0.2);
            border-radius: 8px;
            font-size: 1rem;
            color: white;
            outline: none;
            transition: all 0.3s ease;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 1px;
        }

        .input-group input:focus {
            border-color: var(--neon-blue);
            box-shadow: 0 0 15px rgba(0, 255, 252, 0.5);
        }

        .input-group label {
            position: absolute;
            left: 20px;
            top: 15px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 1rem;
            pointer-events: none;
            transition: all 0.3s ease;
            letter-spacing: 1px;
        }

        .input-group input:focus + label,
        .input-group input:not(:placeholder-shown) + label {
            transform: translateY(-25px);
            font-size: 0.8rem;
            color: var(--neon-blue);
            text-shadow: var(--text-glow);
            background: var(--darker-bg);
            padding: 0 8px;
        }

        button {
            width: 100%;
            padding: 15px;
            border: none;
            background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 
                0 0 15px rgba(150, 0, 255, 0.5),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-top: 1rem;
        }

        button::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                to bottom right,
                rgba(255, 255, 255, 0.3),
                rgba(255, 255, 255, 0)
            );
            transform: rotate(30deg);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { transform: rotate(30deg) translate(-10%, -10%); }
            50% { transform: rotate(30deg) translate(10%, 10%); }
            100% { transform: rotate(30deg) translate(-10%, -10%); }
        }

        button:hover {
            transform: translateY(-3px);
            box-shadow: 
                0 0 25px rgba(150, 0, 255, 0.8),
                inset 0 0 15px rgba(255, 255, 255, 0.3);
        }

        button:active {
            transform: translateY(0);
        }

        .links {
            display: flex;
            justify-content: space-between;
            margin-top: 2rem;
            font-size: 0.9rem;
        }

        .links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .links a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--neon-blue);
            transition: width 0.3s ease;
        }

        .links a:hover {
            color: var(--neon-blue);
            text-shadow: var(--text-glow);
        }

        .links a:hover::after {
            width: 100%;
        }

        .footer {
            text-align: center;
            margin-top: 2.5rem;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 1px;
        }

        /* 科幻元素装饰 */
        .corner {
            position: absolute;
            width: 50px;
            height: 50px;
            border: 2px solid var(--neon-blue);
            z-index: 2;
            opacity: 0.8;
        }

        .corner::before, .corner::after {
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            background: var(--neon-blue);
            box-shadow: 0 0 10px var(--neon-blue);
        }

        .corner-tl {
            top: 20px;
            left: 20px;
            border-right: none;
            border-bottom: none;
        }

        .corner-tl::before {
            top: -5px;
            left: -5px;
        }

        .corner-tl::after {
            bottom: -5px;
            right: -5px;
        }

        .corner-tr {
            top: 20px;
            right: 20px;
            border-left: none;
            border-bottom: none;
        }

        .corner-tr::before {
            top: -5px;
            right: -5px;
        }

        .corner-tr::after {
            bottom: -5px;
            left: -5px;
        }

        .corner-bl {
            bottom: 20px;
            left: 20px;
            border-right: none;
            border-top: none;
        }

        .corner-bl::before {
            bottom: -5px;
            left: -5px;
        }

        .corner-bl::after {
            top: -5px;
            right: -5px;
        }

        .corner-br {
            bottom: 20px;
            right: 20px;
            border-left: none;
            border-top: none;
        }

        .corner-br::before {
            bottom: -5px;
            right: -5px;
        }

        .corner-br::after {
            top: -5px;
            left: -5px;
        }

        /* 3D悬浮球体 */
        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(30px);
            opacity: 0.3;
            z-index: -1;
            animation: floatOrb 15s infinite ease-in-out;
        }

        .orb-1 {
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, var(--neon-purple), transparent 70%);
            top: -100px;
            left: -100px;
            animation-delay: 0s;
        }

        .orb-2 {
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, var(--neon-blue), transparent 70%);
            bottom: -50px;
            right: -50px;
            animation-delay: 2s;
        }

        .orb-3 {
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, var(--neon-pink), transparent 70%);
            top: 50%;
            left: 10%;
            animation-delay: 4s;
        }

        @keyframes floatOrb {
            0%, 100% { transform: translate(0, 0); }
            25% { transform: translate(50px, 50px); }
            50% { transform: translate(-30px, 80px); }
            75% { transform: translate(70px, -40px); }
        }

        /* 数据流效果 */
        .data-stream {
            position: absolute;
            width: 2px;
            height: 100px;
            background: linear-gradient(to bottom, transparent, var(--neon-blue), transparent);
            animation: dataFlow 3s linear infinite;
            opacity: 0.5;
            transform: rotate(20deg);
        }

        @keyframes dataFlow {
            0% { transform: translateY(-100px) rotate(20deg); }
            100% { transform: translateY(100vh) rotate(20deg); }
        }
    </style>
</head>
<body>
    <!-- 3D悬浮球体背景 -->
    <div class="orb orb-1"></div>
    <div class="orb orb-2"></div>
    <div class="orb orb-3"></div>

    <!-- 数据流效果 -->
    <div id="data-streams"></div>

    <div class="container">
        <div class="portal">
            <!-- 科幻角落装饰 -->
            <div class="corner corner-tl"></div>
            <div class="corner corner-tr"></div>
            <div class="corner corner-bl"></div>
            <div class="corner corner-br"></div>
            
            <h1>SYSTEM LOGIN</h1>
            
            <form>
                <div class="input-group">
                    <input type="text" id="username" placeholder=" " required>
                    <label for="username">USER ID</label>
                </div>
                
                <div class="input-group">
                    <input type="password" id="password" placeholder=" " required>
                    <label for="password">ACCESS CODE</label>
                </div>
                
                <button type="submit">
                    <span>CONNECT</span>
                </button>
                
                <div class="links">
                    <a href="#">FORGOT CREDENTIALS?</a>
                    <a href="#">REQUEST ACCESS</a>
                </div>
            </form>
        </div>
        
        <div class="footer">
            CYBERSECURITY PROTOCOL v4.2.1 | © 2187 NEXUS CORP
        </div>
    </div>

    <script>
        // 创建数据流效果
        const dataStreamsContainer = document.getElementById('data-streams');
        
        for (let i = 0; i < 15; i++) {
            const stream = document.createElement('div');
            stream.classList.add('data-stream');
            
            // 随机位置
            stream.style.left = `${Math.random() * 100}vw`;
            
            // 随机延迟
            stream.style.animationDelay = `${Math.random() * 3}s`;
            
            // 随机高度
            stream.style.height = `${Math.random() * 100 + 50}px`;
            
            // 随机透明度
            stream.style.opacity = Math.random() * 0.3 + 0.2;
            
            dataStreamsContainer.appendChild(stream);
        }

        // 3D悬浮效果增强
        document.addEventListener('mousemove', (e) => {
            const container = document.querySelector('.container');
            const xAxis = (window.innerWidth / 2 - e.pageX) / 25;
            const yAxis = (window.innerHeight / 2 - e.pageY) / 25;
            container.style.transform = `rotateY(${xAxis}deg) rotateX(${yAxis}deg)`;
        });
    </script>
</body>
</html>